package io.yuncheng.modules.sys.entity.xml;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 任务推送的对象
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@XmlRootElement(name = "user")
public class XmlUserEntity {
    /**
     * <user>
     * <oper>mod</oper>
     * <!--操作类型（修改用户）-->
     * <id>14000001@gd.zg</id>
     * <!--用户信任号-->
     * <name>张三</name>
     * <!--用户姓名-->
     * <usertype/>
     * <!--用户类型UT01：个人证书用户，UT02：法人证书用户-->
     * <dname>会议处</dname>
     * <!--用户所属机构名称-->
     * <did>34000001@gd.zg</did>
     * <!--用户所属机构标识-->
     * <dorder/>
     * <!--用户排序号-->
     * <dcode/>
     * <!--用户所属机构编码-->
     * <sexual>1</sexual>
     * <!--用户性别1:男，0：女-->
     * <duty/>
     * <!--用户职务-->
     * <post/>
     * <!--用户岗位-->
     * <account/>
     * <!--用户账号-->
     * <password/>
     * <!--用户密码-->
     * <mail/>
     * <!--安全邮箱-->
     * </user>
     *
     * <user>
     * <oper>del</oper>
     * <!--操作类型（取消用户授权）-->
     * <id>14000001@gd.zg</id>
     * <!--用户信任号-->
     * </user>
     * <user>
     * <oper>deluser</oper>
     * <!--操作类型（删除用户）-->
     * <id>14000001@gd.zg</id>
     * <!--用户信任号-->
     * </user>
     * <user>
     * <oper>change</oper>
     * <!--操作类型-->
     * <id>14000001@gd.zg</id>
     * <!--用户信任号-->
     * <name>张三</name>
     * <!--用户姓名-->
     * <olddid>机要局</olddid>
     * <!—原单位—>
     * <newdid>秘书处</newdid>
     * <!—新单位—>
     * <dorder></doeder>
     * <!—删除老的单位—>
     * </user>
     */
    @XmlElement(name = "oper")
    private String oper;
    @XmlElement(name = "id")
    private String id;
    @XmlElement(name = "name")
    private String name;
    @XmlElement(name = "usertype")
    private String usertype;
    @XmlElement(name = "dname")
    private String dname;
    @XmlElement(name = "did")
    private String did;
    @XmlElement(name = "dorder")
    private String dorder;
    @XmlElement(name = "dcode")
    private String dcode;
    @XmlElement(name = "sexual")
    private String sexual;
    @XmlElement(name = "duty")
    private String duty;
    @XmlElement(name = "post")
    private String post;
    @XmlElement(name = "account")
    private String account;
    @XmlElement(name = "password")
    private String password;
    @XmlElement(name = "mail")
    private String mail;
    @XmlElement(name = "newdid")
    private String newdid;
    @XmlElement(name = "olddid")
    private String olddid;
}
